home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
CDBL2CLD.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
44 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_CDblToCLD( cByteStr ) --> dDate
PARAMETERS:
cByteStr : Eight bytes string to convert to Clipper date type.
SHORT:
C Double to Clipper Date
DESCRIPTION:
Clipper stores dates as an eight byte double.
_CDBLtoCLD() converts a native "C" Double Precision Integer to it's
equivalent Clipper Date. It is used primarily for reading date variables
that have been stored in .MEM files.
The cByteStr must be obtained by way of a direct disk-read of bytes, or by
way of a return value from a "C" function.
NOTE:
This function supports _MemToArray() in MEMARRAY.PRG Refer to that function
for usage examples.
EXAMPLE:
fread(nFHandle,@BYTES,8)
t = _CDBLtoCLD(BYTES)
Result:
t = <a Clipper Date type>
******************************************************************************/